package com.zhongyu.hellocloudgradeprovider.dao;

import com.zhongyu.pojo.Grade;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface GradeDao {
// @Select("select * from test_user where username=#{username} and upwd=#{upwd}")
    @Select("select * from grade where gradeId=#{gradeId}")
    public Grade getGradeById(@Param("gradeId") Integer id);
    @Select("select * from grade")
    public List<Grade> getGrades();


}
